package com.fadadianqi.goods.model;

import com.fadadianqi.commons.BaseObject;

import java.util.Date;

/**
 * 商品
 *
 * @author aroot
 */
public class Goods extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = 6942339026826244038L;

    public static final String PROP_ID = "id";
    public static final String PROP_NAME = "name";
    public static final String PROP_BRAND_ID = "brandId";
    public static final String PROP_CATEGORY_ID = "categoryId";
    public static final String PROP_BRAND_NAME = "brandName";
    public static final String PROP_CATEGORY_NAME = "categoryName";
    public static final String PROP_DISPLAY_NAME = "displayName";
    public static final String PROP_INDEXED = "indexed";

    public static final String PROP_UNIQUE_NAME = "uniqueName";


    private String name;
    private String displayName;
    private String pinyin;
    private int orderby;
    private String brandId;
    private String categoryId;
    private Date recentlyUpdate;
    private Date latestStore; // 最近入库时间
    private Boolean indexed = Boolean.FALSE;
    private String barcode; // 条形码
    private String uniqueName; // 用于辨别唯一产品名的字段包含其属性做条件

    private double price = 0; // 建议零售价


    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getUniqueName() {
        return uniqueName;
    }

    public void setUniqueName(String uniqueName) {
        this.uniqueName = uniqueName;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public Boolean getIndexed() {
        return indexed;
    }

    public void setIndexed(Boolean indexed) {
        this.indexed = indexed;
    }

    public String getDisplayName() {
        return displayName;
    }

    public Date getLatestStore() {
        return latestStore;
    }

    public void setLatestStore(Date latestStore) {
        this.latestStore = latestStore;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public Date getRecentlyUpdate() {
        return recentlyUpdate;
    }

    public void setRecentlyUpdate(Date recentlyUpdate) {
        this.recentlyUpdate = recentlyUpdate;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getOrderby() {
        return orderby;
    }

    public void setOrderby(int orderby) {
        this.orderby = orderby;
    }

    @Override
    public String toString() {
        return "[id=" + getId() + ", displayName=" + displayName + ", name=" + name + "]";
    }

}
